package gat.domain.service.tg.impl;

import com.bitsun.core.common.persistence.BasePService;
import com.bitsun.core.common.persistence.IPService;
import gat.convertor.tg.AccountDbReqDtoConvertor;
import gat.convertor.tg.AccountDbResDtoConvertor;
import gat.domain.service.tg.AccountDbDomainService;
import gat.infrastructure.persistence.dao.tg.AccountDbMapper;
import gat.infrastructure.persistence.po.tg.AccountDbPo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: Felix Woo （junfengwstar@gmail.com）
 * @Date: 2019-09-20 19:40
 * @Version: 1.0
 * @Description:
 */
@Slf4j
@Service("accountDbDomainService")
public class AccountDbDomainServiceImpl implements AccountDbDomainService {

    @Autowired
    private AccountDbReqDtoConvertor accountDbReqDtoConvertor;

    @Autowired
    private AccountDbResDtoConvertor accountDbResDtoConvertor;

    private IPService<AccountDbPo> accountDbPoService;

    @SuppressWarnings("SpringJavaAutowiringInspection")
    public AccountDbDomainServiceImpl(AccountDbMapper accountDbMapper) {
        this.accountDbPoService = new BasePService(accountDbMapper);
    }
}